package com.student.service;

import com.student.dao.ClassKeMapper;
import com.student.pojo.ClassKe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author 是一个鸽子啊
 * @date 2020/4/14
 * @qq 364826415
 */
@Service
public class ClassKeServiceImpl implements ClassKeService{
    private ClassKeMapper classKeMapper;
    @Autowired
    public void setClassKeMapper(ClassKeMapper classKeMapper) {
        this.classKeMapper = classKeMapper;
    }

    @Override
    public List<ClassKe> queryClassKe() {
        return classKeMapper.queryClassKe();
    }

    @Override
    public int updateClassKe(ClassKe classKe) {
        return classKeMapper.updateClassKe(classKe);
    }

    @Override
    public List<ClassKe> queryClassKeByClassesID(int classesID) {
        return classKeMapper.queryClassKeByClassesID(classesID);
    }

    @Override
    public int addClassesKe(ClassKe classKe) {
        return classKeMapper.addClassesKe(classKe);
    }

    @Override
    public int delClassesKe(int classKeID) {
        return classKeMapper.delClassesKe(classKeID);
    }
}
